package com.changli09._enum;

public class SeasonTest {
    public static void main(String[] args) {
        Season s = new Season ();
        System.out.println(s.Spring.toString());
        System.out.println(s.Spring.getSeasonName());
        System.out.println(s.Spring.getSeasonDesc());
    }
}
class Season{
    private String seasonName;
    private String seasonDesc;

    public Season() {
    }

    private Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public void setSeasonName(String seasonName) {
        this.seasonName = seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    public void setSeasonDesc(String seasonDesc) {
        this.seasonDesc = seasonDesc;
    }
    public static final Season Spring = new Season("春天", "春暖花开");
    public static final Season Summer = new Season ("夏天","夏日炎炎");
    public static final Season Autumn = new Season ("秋天","秋高气爽");
    public static final Season Winter = new Season ( "冬天","白雪皑皑");

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }
}
